package com.xhs.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @desc:
 * @projectName: tools-parent
 * @author: xhs
 * @date: 2022/12/3 21:36
 * @version: JDK 1.8
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class StudentEntity {

    /**
     * id 主键
     */
    private Integer Id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别
     */
    private String sex;

    /**
     * 年级
     */
    private String grade;

    /**
     * 班级
     */
    private String classNmae;

    public StudentEntity(Integer id, String name, Integer age, String grade, String classNmae) {
        Id = id;
        this.name = name;
        this.age = age;
        this.grade = grade;
        this.classNmae = classNmae;
    }

    public StudentEntity(String name, Integer age, String sex, String classNmae) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.classNmae = classNmae;
    }
}
